const {baseService} =require('../../baseService')





// const {role_bean} =require('../../../beans/impl/role_bean/index')
const {role_model} =require('../../../dao/model/model')
const { baseService2 } = require('../../baseService2')

/* 
1,修改导入的bean,和model,就是上面
2,把构造方法里的这些都改下

*/

/* 异常类 */
class role_serviceError extends Error {
    constructor(error,message='role_serviceError'){
        super()
        this.error = error
        this.message=message
        
    }
}


class role_service extends baseService2 {

    static ins = new role_service()

    constructor(){
        super(role_model,role_serviceError)
    }


    static getIns (){
        if(this.ins){
            return this.ins
        }else{
            return new role_service()
        }
    }


}







module.exports={role_service}
